<?php
//echo "哎呀，出错啦\r\n出错信息：";

$e = $this->get('exception');
if (SC::get("board_config.debug"))
{
    NICED_PRINT($e); 
}
else
{
    $message = "内部服务错误，请稍候再试";
    if (method_exists($e, "getFriendlyMessage"))
    {
        $message = ($msg = $e->getFriendlyMessage()) ? $msg : $message; 
    }
    echo $message;
    NICED_LOG(ERROR, $e->__toString());
}
